package com.example.sync.handler.impl;

import com.example.sync.handler.IHandler;
import com.example.sync.po.SysASyncJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


/**
 * @author chentao
 * @version 1.0
 * @description: TODO
 * @date 2025/3/22 下午3:27
 */
@Service
public class SysSmsHandler extends SysAbstractHandler implements IHandler {

    Logger logger = LoggerFactory.getLogger(getClass());

    public static final String TYPE = "sms_send";

    //重试间隔 300秒
    public static final int retryPeriod = 300;

    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public int getRetryPeriod() {
        return retryPeriod;
    }

    @Override
    public void handle(SysASyncJob sysASyncJob) throws Exception {
        logger.warn("sms 发送成功: {}", sysASyncJob);
    }
}
